include .env
ARTIFACT_DIR?=strimzi-0.40.0
NAMESPACE?=bi-service
RELEASE_NAME?=kafka
export

change_ns:
	kubectl create ns ${NAMESPACE}
	sed -i 's/namespace: .*/namespace: ${NAMESPACE}/' ${ARTIFACT_DIR}/install/cluster-operator/*RoleBinding*.yaml

install_cluster_operator:
	kubectl create -f ${ARTIFACT_DIR}/install/cluster-operator -n ${NAMESPACE}

zoo_entrance:
	kubectl apply -f ./zoo-entrance/deploy.yaml

install_kafka_connect:
	kubectl apply -f ./kafka-connect.yaml

install_kafka_map:
	kubectl apply -f ./kafka-map.yaml

uninstall_kafka_map:
	kubectl delete -f ./kafka-map.yaml